package v1

import (
	"donkey-admin/internal/model/entity"
	"github.com/gogf/gf/v2/frame/g"
)

type OperationLogGetAllReq struct {
	g.Meta   `path:"/OperationLog.Get" tags:"OperationLog" method:"get" summary:"获取所有操作记录"`
	PageSize int `json:"pageSize" v:"required|between:1,50#pageSize为必填参数|pageSize应大于等于1且小于等于50"`
	Page     int `json:"page" v:"required|min:0#page为必填参数|page应大于等于0"`
}

type OperationLogGetAllRes struct {
	PageSize int                      `json:"pageSize"`
	Page     int                      `json:"page"`
	Total    int                      `json:"total"`
	Rows     []entity.SysOperationLog `json:"rows"`
}
